<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>请假调休列表</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="./css/style.css">
</head>

<body>

<div class="x-body">

    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                <select name="contrller">
                    <option value=""></option>
                    <option value="0">按申请时间查询</option>
                    <option value="1">按请假/调休时间查询</option>
                </select>
            </div>
            <!--<input class="layui-input" placeholder="开始日" name="start" id="start">-->
            <!--<input class="layui-input" placeholder="截止日" name="end" id="end">-->
            <input class="layui-input" placeholder="截止日" name="end" id="fw1">
            <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>

    <xblock>
        <button class="layui-btn" onclick="x_admin_show('新增电商渠道','./online-add.html',600,300)"><i
                class="layui-icon"></i>请假/调休
        </button>
        <span class="x-right" style="line-height:40px">共有数据：88 条</span>
    </xblock>


    <table class="layui-table">
        <thead>
        <tr>

            <th>申请时间</th>
            <th>请假类型</th>
            <th>请假/调休时间</th>
            <th>审批进程</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>2017-08-09</td>
            <td>事假</td>
            <td>自2017-08-09 9:00至 2017-08-10 18:00</td>
            <td>待审批</td>
            <td class="td-manage">
                <a title="查看" onclick="x_admin_show('病假','b04.html',900,600)" href="javascript:;">
                    <img src="images/chakan.png" alt="" class="recoverimg">
                </a>
                <a title="修改" onclick="x_admin_show('修改渠道信息','b07请假申请.html',1100,500)" href="javascript:;">
                    <i class="layui-icon">&#xe642;</i>
                </a>
                <a title="撤销" onclick="x_admin_show('撤销申请','Revoke-撤销申请弹窗.html',700,350)" href="javascript:;">
                    <img src="images/恢复.png" alt="" class="recoverimg">
                </a>
            </td>
        </tr>
        <tr>
            <td>2017-08-09</td>
            <td>事假</td>
            <td>自2017-08-09 9:00至 2017-08-10 18:00</td>
            <td>待审批</td>
            <td class="td-manage">
                <a title="销假" onclick="x_admin_show('销假申请','Sick leave-销假弹窗.html',700,500)" href="javascript:;">
                    <img src="images/stop.png" alt="" class="recoverimg">
                </a>
                <a title="重新发起" onclick="x_admin_show('查看','Essential information.html')" href="javascript:;">
                    <img src="images/again.png" alt="" class="recoverimg">
                </a>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="page">
        <div id="test1"></div>
    </div>
</div>

<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
<script src="./lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script>
<script>
    $(".sl").click(function () {
        var input = "<input type='text' id='temp' class=\"layui-input\"  placeholder=\"请输入\" value=" + $(this).text() + " >";
        $(this).text("");
        $(this).append(input);
        $("input#temp").focus();
        $("input").blur(function () {
            if ($(this).val() == "" || $("this").val() == "请输入") {
                $("sl").text("请输入");
//              $("this").closest("td").text("请输入")
            } else {
                $(this).closest("td").text($(this).val());
            }
        });
    })

</script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#fw1'
            ,type: 'datetime'
            ,range: '到'
            ,format: 'yyyy年M月d日H时m分s秒'
        });
//        //执行一个laydate实例
//        laydate.render({
//            elem: '#start' //指定元素
//        });
//
//        //执行一个laydate实例
//        laydate.render({
//            elem: '#end' //指定元素
//        });
    });

    layui.use('laypage', function(){
        var laypage = layui.laypage;

        //执行一个laypage实例
        laypage.render({
            elem: 'test1'
            ,count: 500
            ,curr: location.hash.replace('#!fenye=', '') //获取hash值为fenye的当前页
            ,hash: 'fenye' //自定义hash值
        });
    });
    function member_del(obj, id) {
        var data = $(obj).parent().parent().children().html();
        console.log(data)
        layer.confirm('确认要删除' + data + '吗？', {title: '确认删除'}, function (index) {
            //发异步删除数据
            $(obj).parents("tr").remove();
            layer.msg('已删除!', {icon: 1, time: 1000});
        });
    }
</script>
<script>var _hmt = _hmt || [];
(function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>